home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
boi120p.zip
/
UNITS.ZIP
/
IOSUPP.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1990-11-04
|
1KB
|
51 lines
{$D-}
{$S-}
{$V-}
Unit IOSupp;
INTERFACE
Procedure CHECKSECONDKEY(var cskey : char);
IMPLEMENTATION
Uses
BOIDecl,
Async,
IOLib;
Const
null = #$00;
F9 = #$43;
F10 = #$44;
Procedure CHECKSECONDKEY(var cskey : char);
{ this procedure Aborts the program if F-10 is pressed from the
local keyboard }
var cloop : byte;
begin {* CheckSecondKey *}
if cskey = f9 then
begin
for cloop := 1 to random(15) + 8 do SendString(chr(random(222)+33),false);
SendString(#7,false);
DropCarrier;
EndPort;
Halt
end
else if cskey = f10 then
begin
PortWindow(1,1,80,pagelength);
ClrPortScr;
SendString('The SysOp has terminated this program.',true);
SendString('Please standby as control returns to the BBS.',false);
EndPort;
Halt
end
else cskey := null;
setfunction := false;
end; {* CheckSecondKey *}
end. Unit